#pragma once

#include <QtGui/QFrame>
#include <QtGui/QTextEdit>
#include <QtGui/QSpinBox>
#include <QtGui/QTextEdit>
#include <QtGui/QPushButton>

#include "MikinolSensorManager.h"
#include "MikinolFaceTracker.h"

namespace Mikinol
{

class QFaceTrackerTestWidget:	public QFrame,
								public Sensor::Listener
{ 
	Q_OBJECT

public:
	QFaceTrackerTestWidget( QWidget* parent, SensorManager* sensorManager );
	virtual ~QFaceTrackerTestWidget();

private slots:
	void					startStopButtonPressed();

protected:
	virtual void			onCapturedDepthImage( Sensor* sensor );

private:
	SensorManager*			mSensorManager;
	QSpinBox*				mSensorIndexSpinBox;
	QPushButton*			mStartStopButton;
	QTextEdit*				mFaceTrackerResultTextEdit;

	Sensor*					mSensor;
	FaceTracker*			mFaceTracker;
};

}